package pl.veneo.wigprofit.model.items {
	/**
	 * @author Tomasz Swierszcz, fiodorkrk@gmail.com
	 */
	public class IndexData extends AbstractDataItem {
		
		private var _index : Number;

		public function IndexData(dateString : String = null, indexString : Number = -1) {
		
			super(dateString);
			
			if (indexString > -1)
				index = indexString;
		}

		public function get index() : Number {
			return _index;
		}

		public function set index(index : Number) : void {
			_index = index;
		}

		override public function toString() : String {
			return '[' + date + '] ' + index;
		}
	}
}
